<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>欢迎来到springboot2.0整合spring security</h1>
	
	<a href="/index" >首页(无权限测试)</a><br/><br/>
	<a href="/admin" >admin页(有权限测试)</a>
	
	<sec:authorize access="hasRole('ROLE_admin')">  
        拥有 admin 角色
    </sec:authorize>
   s  拥有 普通 角色
	<sec:authorize access="hasRole('manager')">  
        拥有 manager 角色
    </sec:authorize>  
    <sec:authorize access="hasRole('admin')">  
        拥有 admin 角色1111
    </sec:authorize>
</body>
</html>